from Interpreter.CalculateFunction import *from Interpreter.Complex import *class RootFun (CalculateFunction):	def get_name(self):		return "root"	def execute(self, paraList):		if(len(paraList) != 2):			context.setErrorMessage(self.get_name(), R_string.error_invalid_parameter_count)			return False		x = paraList[0]		if(x.i != 0):			context.setErrorMessage(self.get_name(), R_string.error_invalid_date_type)			return False		y = paraList[1]		if(y.r == 0):			context.setErrorMessage(self.get_name(), R_string.error_invalid_input)			return False		if(y.i != 0):			context.setErrorMessage(self.get_name(), R_string.error_invalid_date_type)			return False		context.setCurrentResult(Complex(math.pow(x.r, 1/y.r)))		return self.checkResult(context)